CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET(H_ROOT_PATH ../)

SET(H_SRC_PATH ${H_ROOT_PATH}/wtl_show)

PROJECT(wtl_show)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -o2 -w -pthread -ldl -ggdb")

IF(WIN32)
    SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS") 
ENDIF(WIN32)

INCLUDE_DIRECTORIES(
${H_ROOT_PATH}/include
${H_ROOT_PATH}/../include/base
)

file(GLOB_RECURSE srcs 
${H_SRC_PATH}/*.h
${H_SRC_PATH}/*.cpp
${H_SRC_PATH}/*.rc
)

LINK_DIRECTORIES(
	${CMAKE_CURRENT_SOURCE_DIR}/../../lib
)

ADD_EXECUTABLE(
	${PROJECT_NAME}
	${srcs}
)

TARGET_LINK_LIBRARIES(
	${PROJECT_NAME}
	myRec
)

